
export class PositionSample<T extends RoomPosition = RoomPosition> implements ISample<T>
{
    private _obj:T;
    private _nabs:PositionSample[]=[];
    constructor(line:T)
    {
        this._obj = line;
    }
    isInRange(sam: PositionSample, r: number): boolean
    {

        if(sam.Data.distance(this.Data)<=r)
        {
            return true;
        }

        return false;
        // throw new Error("Method not implemented.");
    }
    addNab(sam: PositionSample): void
    {
        // throw new Error("Method not implemented.");
        this._nabs.push(sam);
    }
    isCore(): boolean
    {
        throw new Error("Method not implemented.");
    }
    getNabs(): PositionSample[]
    {
        return this._nabs;
        // throw new Error("Method not implemented.");
    }
    get Data(): Readonly< T>
    {
        return this._obj;
    }

}
